<me:UIKUNDVER x:Class="WPFExcelReport.TSVB"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
            xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
            xmlns:me="clr-namespace:WPFExcelReport" 
            xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
            xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
            x:Name="TV"
            Loaded="Window_Loaded"
     >
    <me:UIKUNDVER.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIKUNDVER.Resources>

    <WrapPanel>
        <Button Grid.Column="1" Click="ManageCommand" Width="24" Height="20" HorizontalAlignment="Left"  Visibility="{Binding IsMaster, Converter={StaticResource bv}}" >
            <Button.Background>
                <ImageBrush ImageSource="/ImagePackage;component/Images/Extend.png" />
            </Button.Background>
        </Button>
        <ComboBox Visibility="{Binding IsEdit,ElementName=TV, Converter={StaticResource bv}}"
         IsEditable="True" 
         Width="60" 
         SelectedValuePath="KEY" 
         DisplayMemberPath="KEY"
         ItemsSource="{Binding Source={StaticResource vwMaster}}" 
         IsSynchronizedWithCurrentItem="True" 
    >
        </ComboBox > 
    </WrapPanel>

</me:UIKUNDVER>
